package com.example.bankend.mapper;



import com.example.bankend.model.Transaction;
import com.example.bankend.model.TransferDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TransactionMapper {
    int insert(Transaction transaction);

    int deleteByPrimaryKey(Integer tradeID);

    int updateByPrimaryKey(Transaction transaction);

    Transaction selectByPrimaryKey(Integer tradeID);
    //转账
//    void transfer(TransferDto transferDto);
    List<Transaction> selectAll();
    void transferByProcedure(TransferDto transferDto); // 添加存储过程调用方法

    List<Transaction> selectByCardID(String cardID);
}
